package com.itxuchao.demo1;

public class Xuchao002 {
    String name;
    int age;
    double cm;

//    public Xuchao002(){
//
//    }
    public Xuchao002(String name,int age,double cm){
        this.name=name;
        this.age=age;
        this.cm=cm;
    }
    public void eat(){
        System.out.println(this.name+"我会吃饭");
    }
    public void  cm(){
        System.out.println(name +"长度为:"+cm+"cm");
    }
}
